#Filename: back_ver1.py

import os
import time

#1. The files directories to be backed up are specified in list.
source = ['D:\\python\\dir1','D:\\python\\dir2']

target_dir ='D:\\python2'

target = target_dir + time.strftime('%Y%m%d%H%M%S') + '.zip'

zip_command = "zip -qr '%s' %s" % (target, ' '.join(source))
print os.system(zip_command)
if os.system(zip_command) == 0 :
    print 'Successfull backup to', target
else:
    print 'Backup FAILED'

